package com.ruoyi.demo.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.springframework.data.annotation.Id;


import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Table;
import java.util.Date;

@Data
@Entity
@Table(name = "user_photo")
public class Photo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** id */
    @javax.persistence.Id
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /** 用户id */
    @Excel(name = "用户ID")
    private Long userId;

    /** 照片路径 */
    @Excel(name = "照片路径")
    private String photoPath;

    /** 记录图像采集的时间 */
    @Excel(name = "采集时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    /** 逻辑删除标志 */
    private String isDeleted;

}
